home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / ver_cont / cvs-1.8 / cvs-1 / cvs-1.8.1 / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-05-06  |  3.2 KB  |  165 lines

  1. # Makefile for library files used by GNU CVS.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1986, 1988-1994 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # $CVSid: @(#)Makefile.in 1.21 94/09/24 $
  20. srcdir     = @srcdir@
  21. top_srcdir = @top_srcdir@
  22. cvs_srcdir = @top_srcdir@/src
  23. VPATH      = @srcdir@
  24.  
  25. SHELL = /bin/sh
  26.  
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29.  
  30. SOURCES = \
  31.     argmatch.c \
  32.     dup2.c \
  33.     fnmatch.c \
  34.     ftruncate.c \
  35.     getdate.c \
  36.     getdate.y \
  37.         getline.c \
  38.     getopt.c \
  39.     getopt1.c \
  40.     getwd.c \
  41.     hostname.c \
  42.     md5.c \
  43.     memmove.c \
  44.     mkdir.c \
  45.     regex.c \
  46.     rename.c \
  47.     savecwd.c \
  48.     sighandle.c \
  49.     strdup.c \
  50.     strstr.c \
  51.     strerror.c \
  52.     strippath.c \
  53.     stripslash.c \
  54.     strtoul.c \
  55.     valloc.c \
  56.     vasprintf.c \
  57.     waitpid.c \
  58.     xgetwd.c \
  59.     yesno.c
  60.  
  61. HEADERS = getline.h getopt.h fnmatch.h regex.h system.h wait.h md5.h savecwd.h
  62.  
  63. OBJECTS = \
  64.     @LIBOBJS@ \
  65.     argmatch.o \
  66.     getline.o \
  67.     getopt.o \
  68.     getopt1.o \
  69.     md5.o \
  70.     savecwd.o \
  71.     sighandle.o \
  72.     strippath.o \
  73.     stripslash.o \
  74.     xgetwd.o \
  75.     yesno.o \
  76.     getdate.o
  77.  
  78. DISTFILES = \
  79.     .cvsignore ChangeLog ChangeLog.fsf Makefile.in \
  80.     ${SOURCES} ${HEADERS}
  81.  
  82. DEFS = @DEFS@
  83. RANLIB = @RANLIB@
  84.  
  85. CC       = @CC@
  86. CFLAGS = -g
  87. CPPFLAGS=
  88.  
  89. YACC = @YACC@
  90.  
  91. .c.o:
  92.     $(CC) $(CPPFLAGS) -I.. -I$(srcdir) -I$(cvs_srcdir) \
  93.               $(DEFS) $(CFLAGS) -c $<
  94.  
  95. all: libcvs.a
  96. .PHONY: all
  97.  
  98. install: all
  99. .PHONY: install
  100.  
  101. tags: $(DISTFILES)
  102.     ctags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
  103.  
  104. TAGS: $(DISTFILES)
  105.     etags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
  106.  
  107. ls:
  108.     @echo $(DISTFILES)
  109. .PHONY: ls
  110.  
  111. clean:
  112.     rm -f *.a *.o
  113. .PHONY: clean
  114.  
  115. distclean: clean
  116.     rm -f tags TAGS Makefile
  117. .PHONY: distclean
  118.  
  119. realclean: distclean
  120.     rm -f *.tab.c getdate.c
  121. .PHONY: realclean
  122.  
  123. dist-dir:
  124.     mkdir ${DISTDIR}
  125.     for i in ${DISTFILES}; do \
  126.       ln $(srcdir)/$${i} ${DISTDIR}; \
  127.     done
  128. .PHONY: dist-dir
  129.  
  130. libcvs.a: $(OBJECTS)
  131.     $(AR) cr $@ $(OBJECTS)
  132.     -$(RANLIB) $@
  133.  
  134. getdate.c: getdate.y
  135.     @echo expect 10 shift/reduce conflicts
  136.     $(YACC) $(srcdir)/getdate.y
  137.     -@if test -f y.tab.c; then \
  138.        mv y.tab.c getdate.c ;\
  139.     else \
  140.        if test -f getdate.tab.c ; then \
  141.            mv getdate.tab.c getdate.c ; \
  142.        else \
  143.            echo '*** Unable to create getdate.c' ;\
  144.        fi ;\
  145.     fi
  146.  
  147. fnmatch.o: fnmatch.h
  148. getopt1.o: getopt.h
  149. regex.o: regex.h
  150. getwd.o: system.h
  151. md5.o: md5.h
  152.  
  153. xlint:
  154.     @echo xlint does nothing
  155.  
  156. subdir = lib
  157. Makefile: ../config.status Makefile.in
  158.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  159.  
  160. #../config.status: ../configure
  161. #    cd .. ; $(SHELL) config.status --recheck
  162.  
  163. #../configure: ../configure.in
  164. #    cd $(top_srcdir) ; autoconf
  165.